package com.tom.zx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 装修订单
 * </p>
 *
 * @author lp
 * @since 2022-05-16
 */
@Getter
@Setter
@TableName("furnish_order")
@ApiModel(value = "FurnishOrder对象", description = "装修订单")
public class FurnishOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("订单号，随机生成")
    @TableField("order_number")
    private String orderNumber;

    @ApiModelProperty("装修方案id")
    @TableField("decoration_scheme_id")
    private Long decorationSchemeId;

    @ApiModelProperty("单价")
    @TableField("order_unit_price")
    private BigDecimal orderUnitPrice;

    @ApiModelProperty("订单金额")
    @TableField("order_sum")
    private BigDecimal orderSum;

    @ApiModelProperty("平米")
    @TableField("square_meter")
    private Integer squareMeter;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    @TableField("user_id")
    private Long userId;

    @TableField("status")
    private Integer status;


}
